/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-08-13  11:57
 */
class Dog {
    public String name;
    int age;

    public Dog() {
        this("旺财",18);
    }
    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void show() {
        System.out.println("姓名：" + name + " 年纪：" + age);
    }
}
public class Test1 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.show();
    }
}
